package com.woniu.adminservice.controller;

import com.woniu.adminservice.entity.RolesMenus;
import com.woniu.adminservice.service.RolesMenusService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("rolesMenus")
public class RolesMenusController {
    @Resource
    private RolesMenusService rolesMenusService;

    @GetMapping("selectOne")
    public RolesMenus selectOne(Integer id) {
        return rolesMenusService.queryById(id);
    }

}